package cn.ad.server.domain.ad;

import java.io.Serializable;
import java.util.Date;

/**
 * 广告形式 横屏 插屏 开屏 视频 原生
 * 
 * @author alleywind
 *
 */
public class StrategyConnectMap implements Serializable {


	/**
	 * 
	 */
	private static final long serialVersionUID = -2635684283732436684L;
	static final String VERSION = "0";
	static final String CACHE_NAME = "strategyconnectmap";

	private int id;
	private int strategyId;
	private int connectType;
	private int status;
	private Date createTime;
	private Date updateTime;

	public static String cacheKey(int id) {
		return new StringBuffer(CACHE_NAME).append(":").append(VERSION).append(":").append(id).toString();
	}

	public String toCacheKey() {
		return new StringBuilder(CACHE_NAME).append(":").append(VERSION).append(":").append(this.getId()).toString();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getStrategyId() {
		return strategyId;
	}

	public void setStrategyId(int strategyId) {
		this.strategyId = strategyId;
	}

	public int getConnectType() {
		return connectType;
	}

	public void setConnectType(int connectType) {
		this.connectType = connectType;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	

}
